import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:tender_flutter/utils/utils.dart';

class ToastUtils {
  static show(String msg) {
    // Fluttertoast.showToast(
    //     msg: msg,
    //     toastLength: Toast.LENGTH_SHORT,
    //     gravity: ToastGravity.CENTER,
    //     timeInSecForIosWeb: 1,
    //     backgroundColor: Colors.black,
    //     // textColor: Colors.white,
    //     fontSize: 16.0);
    EasyLoading.showToast(msg);
  }

  static showLoading(String msg) {
    EasyLoading.show(status: isEmpty(msg) ? '' : msg);
  }

  static dismissLoading() {
    EasyLoading.dismiss();
  }
}
